package com.booksystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.booksystem.entity.DeliveryInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 物流配送信息 Mapper 接口
 * </p>
 * @author 段伟豪
 */
public interface DeliveryInfoMapper extends BaseMapper<DeliveryInfo> {
    
    /**
     * 根据订单ID获取配送信息
     *
     * @param orderId 订单ID
     * @return 配送信息对象
     */
    @Select("SELECT * FROM delivery_info WHERE order_id = #{orderId}")
    DeliveryInfo selectByOrderId(@Param("orderId") Long orderId);
}